import request from '@/utils/request'

// 查询店铺商品分类列表
export function listGoodsLabel(query) {
  return request({
    url: '/product/goodsLabel/list',
    method: 'get',
    params: query
  })
}

// 查询店铺商品分类详细
export function getGoodsLabel(id) {
  return request({
    url: '/product/goodsLabel/' + id,
    method: 'get'
  })
}

// 新增店铺商品分类
export function addGoodsLabel(data) {
  return request({
    url: '/product/goodsLabel',
    method: 'post',
    data: data
  })
}

// 修改店铺商品分类
export function updateGoodsLabel(data) {
  return request({
    url: '/product/goodsLabel',
    method: 'put',
    data: data
  })
}

// 删除店铺商品分类
export function delGoodsLabel(id) {
  return request({
    url: '/product/goodsLabel/' + id,
    method: 'delete'
  })
}
